import request from '@/utils/request'

// 获取所有广告信息
export const getAdList = () => {
  return request({
    method: 'GET',
    url: '/front/ad/getAdList'
  })
}

// 更新广告状态
export const getUpdateStatus = data => {
  return request({
    method: 'GET',
    url: '/front/ad/updateStatus',
    data
  })
}

// 新增或者修改广告信息
export const getAddOrEditAdvert = data => {
  return request({
    method: 'POST',
    url: '/front/ad/saveOrUpdate',
    data
  })
}
